package edu.zzuli.common;

import java.io.Serializable;

/**
 * @author tianshaojie
 * @date 2011-3-9
 * @discription : 
 */
@SuppressWarnings("serial")
public class TreeNode implements Serializable {
	
	private String id;

	private String name;
    
	private String pId;
	
	private boolean checked;
	
	public TreeNode(){}
	
	public TreeNode(String id,String name) {
		this.id = id;
		this.name = name;
	}
	
	public TreeNode(String id,String name,String pId) {
		this.id = id;
		this.name = name;
		this.pId = pId;
	}
	
	public TreeNode(String id,String name,String pId,boolean checked) {
		this.id = id;
		this.name = name;
		this.pId = pId;
		this.checked = checked;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getpId() {
		return pId;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public boolean isChecked() {
		return checked;
	}
}
